<template>
  <div class="top">
    <p>编辑</p>
    <p>完成</p>
    <p>购物车</p>
    <p @click="filterBtn">筛选</p>
  </div>
</template>

<script>
export default {
  setup(props, context) {
    function filterBtn() {
     console.log(context);
      context.emit("isShouTap");
    }
    return {
      filterBtn,
    };
  },

  methods: {},
};
</script>

<style lang="scss" scoped>
.top {
  width: 100%;
  height: 40px;
  background-color: rgb(240, 33, 33);
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #fff;
}
</style>
